package self.hoy.demo.common.constant;

import lombok.Getter;

/**
 * @author hyh
 * @date 2020/7/17
 */
public class ProductConstant {
    @Getter
    public enum ATTR_TYPE {
        BASE(1, "基本属性"), SALE(0, "销售属性"),

        ;
        ATTR_TYPE(int v, String m) {
            this.type = v;
            this.msg = m;
        }
        private int type;
        private String msg;
    }

    @Getter
    public enum SPU_STATUS {
        NEW_SPU(0, "新建"),
        UP(1, "上架"),
        OFF(2, "下架")
        ;
        SPU_STATUS(int c, String m) {
            this.code = c;
            this.msg = m;
        }
        ;
        private int code;
        private String msg;
    }
}
